package paneles;

import javax.swing.JPanel;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import javax.swing.JTextField;
import java.awt.Insets;
import javax.swing.border.TitledBorder;
import java.awt.Color;

public class PanelResultadoBusqueda extends JPanel {
	private JTextField txtTitulo;
	private JTextField txtAoDeLanzamiento;
	private JTextField txtCarreta;
	private JTextField txtIndex;

	/**
	 * Create the panel.
	 */
	public PanelResultadoBusqueda() {
		setBorder(new TitledBorder(null, "Informacion Pelicula", TitledBorder.LEADING, TitledBorder.TOP, null, Color.DARK_GRAY));
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{0, 0, 0};
		gridBagLayout.rowHeights = new int[]{0, 0, 0, 0, 0, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 1.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		setLayout(gridBagLayout);
		
		JLabel lblTituloDeLa = new JLabel("Titulo de la pelicula");
		GridBagConstraints gbc_lblTituloDeLa = new GridBagConstraints();
		gbc_lblTituloDeLa.anchor = GridBagConstraints.EAST;
		gbc_lblTituloDeLa.insets = new Insets(0, 0, 5, 5);
		gbc_lblTituloDeLa.gridx = 0;
		gbc_lblTituloDeLa.gridy = 0;
		add(lblTituloDeLa, gbc_lblTituloDeLa);
		
		txtTitulo = new JTextField();
		txtTitulo.setEditable(false);
		txtTitulo.setText("Titulo");
		GridBagConstraints gbc_txtTitulo = new GridBagConstraints();
		gbc_txtTitulo.insets = new Insets(0, 0, 5, 0);
		gbc_txtTitulo.fill = GridBagConstraints.HORIZONTAL;
		gbc_txtTitulo.gridx = 1;
		gbc_txtTitulo.gridy = 0;
		add(txtTitulo, gbc_txtTitulo);
		txtTitulo.setColumns(10);
		
		JLabel lblAoDeLanzamiento = new JLabel("A\u00F1o de lanzamiento");
		GridBagConstraints gbc_lblAoDeLanzamiento = new GridBagConstraints();
		gbc_lblAoDeLanzamiento.anchor = GridBagConstraints.EAST;
		gbc_lblAoDeLanzamiento.insets = new Insets(0, 0, 5, 5);
		gbc_lblAoDeLanzamiento.gridx = 0;
		gbc_lblAoDeLanzamiento.gridy = 1;
		add(lblAoDeLanzamiento, gbc_lblAoDeLanzamiento);
		
		txtAoDeLanzamiento = new JTextField();
		txtAoDeLanzamiento.setText("A\u00F1o de lanzamiento");
		txtAoDeLanzamiento.setEditable(false);
		GridBagConstraints gbc_txtAoDeLanzamiento = new GridBagConstraints();
		gbc_txtAoDeLanzamiento.insets = new Insets(0, 0, 5, 0);
		gbc_txtAoDeLanzamiento.fill = GridBagConstraints.HORIZONTAL;
		gbc_txtAoDeLanzamiento.gridx = 1;
		gbc_txtAoDeLanzamiento.gridy = 1;
		add(txtAoDeLanzamiento, gbc_txtAoDeLanzamiento);
		txtAoDeLanzamiento.setColumns(10);
		
		JLabel lblDescripcion = new JLabel("Descripcion ");
		GridBagConstraints gbc_lblDescripcion = new GridBagConstraints();
		gbc_lblDescripcion.anchor = GridBagConstraints.EAST;
		gbc_lblDescripcion.gridheight = 2;
		gbc_lblDescripcion.insets = new Insets(0, 0, 5, 5);
		gbc_lblDescripcion.gridx = 0;
		gbc_lblDescripcion.gridy = 2;
		add(lblDescripcion, gbc_lblDescripcion);
		
		txtCarreta = new JTextField();
		txtCarreta.setText("Carreta");
		txtCarreta.setEditable(false);
		GridBagConstraints gbc_txtCarreta = new GridBagConstraints();
		gbc_txtCarreta.gridheight = 2;
		gbc_txtCarreta.insets = new Insets(0, 0, 5, 0);
		gbc_txtCarreta.fill = GridBagConstraints.HORIZONTAL;
		gbc_txtCarreta.gridx = 1;
		gbc_txtCarreta.gridy = 2;
		add(txtCarreta, gbc_txtCarreta);
		txtCarreta.setColumns(10);
		
		JLabel lblIndice = new JLabel("Indice");
		GridBagConstraints gbc_lblIndice = new GridBagConstraints();
		gbc_lblIndice.anchor = GridBagConstraints.EAST;
		gbc_lblIndice.insets = new Insets(0, 0, 0, 5);
		gbc_lblIndice.gridx = 0;
		gbc_lblIndice.gridy = 4;
		add(lblIndice, gbc_lblIndice);
		
		txtIndex = new JTextField();
		txtIndex.setEditable(false);
		txtIndex.setText("Index");
		GridBagConstraints gbc_txtIndex = new GridBagConstraints();
		gbc_txtIndex.fill = GridBagConstraints.HORIZONTAL;
		gbc_txtIndex.gridx = 1;
		gbc_txtIndex.gridy = 4;
		add(txtIndex, gbc_txtIndex);
		txtIndex.setColumns(10);

	}

}
